from flask import Flask, make_response, request, session
import datetime
import os
app = Flask(__name__)
#  启用session
app.config['SECRET_KEY'] = os.urandom(24)  # 生成随机数种子，用于生成sessionId

from controller.user import user
# 注册蓝图
app.register_blueprint(user)

from controller.article import article
app.register_blueprint(article)


if __name__ == "__main__":
    app.run()
